//
//  NSString+RQ.m
//  realmDB
//
//  Created by 蜂巢网络科技 on 2017/9/13.
//  Copyright © 2017年 fengchao. All rights reserved.
//

#import "NSString+RQ.h"

@implementation NSString (RQ)

+ (NSString *)imageToBase64Str:(UIImage *)image
{
    NSData *data = UIImageJPEGRepresentation(image, 1.0f);
    NSString *encodedImageStr = [data base64EncodedStringWithOptions:NSDataBase64Encoding64CharacterLineLength];
    return encodedImageStr;
}

@end
